package com.daoeping.dao;

import com.daoeping.data.Usr_education;
import com.daoeping.data.Usr_education;

import java.util.List;



public class Usr_educationDAO extends AllDaoSupport {
	public List<Usr_education> findUsr_educationList(){
		String hql = "from Usr_education";
		return (List<Usr_education>) this.selectDataByHQL(hql);
	}
	
	public List<Usr_education> findUsr_educationByID(int id){
		String hql = "from Usr_education where id =" + id;
		return (List<Usr_education>) this.selectDataByHQL(hql);
	}
	
	public List<Usr_education> findUsr_educationByUserId(int user_id){
		String hql = "from Usr_education where user_id =" + user_id ;
		return (List<Usr_education>) this.selectDataByHQL(hql);
	}
	
}